Method for data transmission by a mobile station comprising a datagram size (mds) determination

ABSTRACT

The invention concerns a data transmission method in accordance with a communication protocol from a mobile station ( 10 ) consisting of a smart card (SIM) associated with a mobile host equipment (ME), said protocol being organised in several layers including at least a data transport layer of the datagram type adapted to transmit integrally data packets (D) of a maximum size (MDS). The invention is characterised in that said transmission method comprises a step which consists, for the card (SIM), in determining the value of said maximum size of data packets (MDS) capable of being integrally transmitted by the transport layer of its mobile host equipment (ME).

[0001] The present invention relates to a method for transmitting data in non-connected mode by means of a mobile station comprising a step of determining the maximum data packet transmission size, known by the term MDS, standing for maximum data size in English (or MMDS, standing for Mobile MDS).

[0002] The invention relates to the field of communications made from a mobile station in the context of the GSM standard. Such a mobile station is composed of an item of mobile equipment and a smart card known as a SIM (standing for Subscriber Identity Module) card. The mobile equipment may be a telephone, a personal digital assistant (PDA, standing for Personal Digital Assistant in English) or the like.

[0003] The communications in question in the context of the present invention can be communications between two mobile stations or between a mobile station and a distant server able to communicate with such a mobile station, such as for example a communication gateway, more commonly known by the term OTA (Over The Air in English) server.

[0004] Exact knowledge of the MDS may prove to be of great importance in the context of a protocol for communication from a mobile station since the transport layers used in this type of protocol are generally not reliable. These transport layers may in fact reject excessively long messages without sending an error message or segment messages into several data packets without guaranteeing the correct reassembly thereof. In the context of such a communication from a mobile station, it is therefore important to transmit only messages with a length less than or equal to the MDS in order to avoid any risk of segmentation or rejection.

[0005] Firstly, it is necessary to give a certain number of definitions and to specify the functioning of certain communication protocols from a mobile station.

[0006] The communication protocols in particular used in a wireless communication context (non-connected mode) follow on from WAP protocols (standing for Wireless Application Protocol) which govern data transmissions between mobile stations and a distant gateway (generally referred to as a WAP gateway).

[0007]FIG. 1 describes schematically the communication within a mobile station 10 composed of an item of mobile equipment ME, a telephone in the example, and a smart card SIM. The mobile station 10 can communicate with another mobile station 10′ or with a distant server 100. The SIM card makes it possible to procure a subscriber identification and a key in order to allow on the one hand the authentication of the subscriber on the GSM network and on the other hand the decrypting or encrypting of the data received or sent. The SIM card also enables the subscriber to access data peculiar to the GSM network and information on the services accessible.

[0008] In the example in question, the communication between the SIM card and the mobile equipment ME is governed according to the BIP protocol (Bearer Independent Protocol) which is an option of the ETSI standard “GSM 11.14” describing the SIM Tool Kit (SKT) and which defines a set of commands and situations. The BIP protocol enables the SIM card to use the communication means of the mobile equipment ME whatever the communication technology used.

[0009] Communication protocols are generally organised in several superimposed layers. A conventional configuration consists of a network layer which rests on a physical and connection layer and which supports a transport layer, other layers being able to be added, such as security, transaction, session, application or other layers, according to the protocols in question.

[0010] The network layer most commonly used is configured according to the IP protocol (Internet Protocol) . This IP network layer manages the interface between the physical transmission architecture and the upper layers, and essentially provides a function of routing data packets (also known as datagrams) as far as the destination, this function also being known by the term router. The IP protocol is not reliable in the event of loss, damage or duplication of data packets: namely the delivery of the datagrams is not guaranteed. It is generally for the upper layers to manage this type of situation.

[0011] The transport layer allows complete transfer of the data. There are essentially two protocols for configuring the transport layer. The TCP protocol (Transmission Control Protocol), as a connected mode protocol, guarantees the integrity and reliability of the data transmissions. The UDP (User Datagram Protocol) or WDP (WAP Datagram Protocol) on the other hand are non-connected mode protocols and are not considered to be reliable since they do not guarantee control of the data transfer. Because of their simplicity, they do however have the advantage of allowing a rapid transmission. These UDP or WDP transport protocols act as simple multiplexers/demultiplexers of data packets. These two transport protocols are very close together in their characteristics, or even identical in the case of certain types of connection (GPRS, CSD).

[0012] The MDS is a restriction in the transport layer (the UDP layer for example) on the maximum number of data octets which can be accepted in the transmission of a single data packet (a datagram). If a message includes more octets than the size of the MDS, the transport layer destroys it without transmitting it to the upper layers or segments it into a plurality of data packets which the receiver is not able to reconstitute.

[0013] Rejection of the messages must obviously be avoided. Likewise, segmentation of the messages must also be avoided as far as possible, in particular in the case where the UDP protocol is used for the transport layer. This is because segmentation often gives rise to data losses without the sending layers being advised of this.

[0014] It is therefore preferable for the SIM card to transmit only sufficiently short messages to avoid their segmentation (or rejection) by the transport layer of the host mobile equipment ME. Knowledge of the MDS then becomes important in order to use the capacities of the transport layer to the maximum possible extent without risking alienating the data transmitted. If the information to be transmitted is greater than that able to be contained in a single message, it is necessary for the SIM card to form a data block composed of several messages M.

[0015]FIG. 2 illustrates the structure of a message M. Each message M comprises a header H and information P (or payload in English). The header H is necessary for indicating the length of the message and its composition (for example a request to determine the MDS). Other information can naturally be entered in the header H according to the functionalities offered by the message protocol in question (for example its position with other messages in a block, the need for an acknowledgement, or the like). The length of the header H is minimised in order to allow a maximum amount of information transfer P. Thus an optional header can be provided in the case of additional parameters to be transmitted.

[0016]FIG. 3 illustrates the principle of segmentation of a message M by the transport layer UDP. The message M will be divided into a plurality of data packets D (datagrams) to the size of the MDS. Each packet D then comprises a header which does not make it possible, once arrived at its destination, to assemble it with the other packets in order to reconstitute the message M. This reconstitution is in fact not guaranteed by the UDP protocol of the transport layer.

[0017] Knowledge of the MDS is therefore important in the context of communications with mobile stations using the UDP protocol for configuring the transport layer of the mobile equipment.

[0018] The objective of the invention is to propose a method for transmitting data in non-connected mode including a step of determining the size of the MDS in order to eliminate any risk of alienation or rejection of the data transmitted.

[0019] The invention relates more specifically to a method for transmitting data according to a communication protocol from a mobile station composed of a smart card (SIM) associated with host mobile equipment, the said protocol being organised in several layers, including at least one data transport layer of the datagram type able to transmit in their entirety data packets of a maximum size (Maximum Datagram Size, MDS), characterised in that the said transmission protocol comprises a step consisting, for the card (SIM), in determining the value of the said maximum size of the data packets (MDS) able to be transmitted in their entirety by the transport layer of its host mobile equipment.

[0020] According to a first embodiment, the value of the maximum size of the data packets (MDS) is supplied to the card (SIM) directly by its host mobile equipment.

[0021] According to a second embodiment, the value of the maximum size of the data packets (MDS) is determined by the card (SIM) from the transmission of at least one message exchanged between the card of the mobile station and a calculation entity, the said messages being of distinct lengths when their number is greater than or equal to two.

[0022] According to one characteristic, the determination of the value of the maximum size of the data packets (MDS) by a calculation entity is determined by means of the following steps:

[0023] sending of N messages by the SIM card each comprising a specific header indicating at least one request for determining the maximum size of the data packets (MDS);

[0024] filtration, by the transport layer of the mobile equipment, of the messages of length less than or equal to the maximum size of the data packets (MDS);

[0025] reception of the said filtered messages which have kept the original specific header and calculation of their respective length by the calculation entity;

[0026] sending of the said lengths calculated to the card of the mobile station;

[0027] determination of the value of the said maximum size of the data packets (MDS) by the card (SIM) by comparison of the said calculated lengths.

[0028] According to the embodiment, the calculation entity is included in the smart card or in a distant server able to communicate with the mobile station.

[0029] According to one embodiment, the filtering of the transport layer consists in rejecting the messages with a length exceeding the maximum size of the data packets (MDS).

[0030] According to another embodiment, the filtering of the transport layer consists in segmenting the messages with a length exceeding the maximum size of the data packets (MDS) into a plurality of a data packets only one of which keeps the specific header of the original message.

[0031] According to one characteristic, the protocol of the transport layer is the UDP protocol (User Datagram Protocol).

[0032] The present invention also relates to a smart card (SIM) able to cooperate with host mobile equipment for communication according to a protocol organised in several layers, including at least one data transport layer of the datagram type able to transmit in their entirety data packets of a maximum size (Maximum Datagram Size, MDS), characterised in that the said card (SIM) comprises means able to extract the value of the said maximum size of the data packets (MDS) able to be transmitted in their entirety by the transport layer of its host mobile equipment.

[0033] The particularities and advantages of the invention will emerge clearly from a reading of the following description, given by way of illustrative and non-limiting example and with regard to the accompanying drawings, in which:

[0034]FIG. 1, already described, illustrates the interface between a SIM card and a mobile station;.

[0035]FIG. 2, already described, is a diagram of an example of the structure of a message to be transmitted;

[0036]FIG. 3, already described, illustrates the principle of the segmentation of the message by the transport layer;

[0037]FIG. 4 is a diagram of a first embodiment of the method according to the invention;

[0038]FIG. 5 is a diagram of a second embodiment of the method according to the invention.

[0039] The objective of the present invention is to determine the value of the maximum size of the data packets able to be transmitted by the transport layer of an item of mobile equipment. Hereinafter, MDS will refer to this value to be determined. The SIM card must procure this value of the MDS for itself so as to allow reliable telecommunication between two mobile stations or between a mobile station and a distant server.

[0040] This information on the value of the MDS, which is peculiar to each item of host mobile equipment, can be supplied or determined at any time of use of the mobile station. The SIM card thus comprises means able to determine this value of the MDS and can then store the memory thereof, in particular as long as it does not detect any change in its host equipment.

[0041] According to a first embodiment, the value of the MDS is supplied to the SIM card directly by its host mobile equipment, for example when the mobile station is powered up, via a command compatible with the standard of the SKT, for example the command TERMINAL PROFILE.

[0042] According to a second embodiment, the value of the MDS is determined by calculation. FIGS. 4 and 5 illustrate the data exchanges between a mobile station 10 and a calculation entity 50 in the context of a determination of the value of the MDS. According to the application, the calculation entity 50 may be a distant server able to communicate with a mobile station (such as an OTA server already cited) or the mobile station itself or another mobile station.

[0043] This is because, to enable calculation of the MDS, it is necessary for messages to pass through the transport layer, the destination of the said messages being of little importance. The calculation entity 50 may therefore be situated in the SIM card itself in the form of an application for example, the SIM card sending messages looping back onto the address of its host mobile equipment (address of the type 127.xxx in the context of the IP protocol).

[0044] The transport layer cannot transmit any message whose length is greater than its MDS. When this case presents itself, the transport layer rejects the excessively long messages (FIG. 4) or segments them (FIG. 5). In the case of segmentation, at least one segmented data packet will be to the size of the MDS.

[0045] According to the invention, the determination of the value of the MDS is obtained by the following steps:

[0046] The mobile station 10 will send a plurality of N messages M_(N) of different lengths, predefined or not, to the calculation entity 50.

[0047] According to the application, N may be equal to 1, that is to say a single message M is transmitted between the SIM card of the mobile station 10 and the calculation entity 50. In this case, the message M is chosen so as to be very long in order for it to be segmented with certainty by the transport layer of the mobile equipment ME.

[0048] Preferentially, a plurality of messages M_(N) are exchanged, with N being able to be fixed between 2 and 6, or even more if necessary, according to the performance and/or capacities of the SIM card.

[0049] The header H_(N) of each message M_(N) must comprise information which is to permit and facilitate the calculation of the MDS. In particular, the header H_(N) must contain the information according to which the message is a request for calculation of the MDS and possibly another field C whose octets cannot all be equal to 0×FF (that is to say all the bits at “1”).

[0050] The useful information (payload) of these messages M_(N) is on the other hand fixed with all the bits at “1”, that is to say all the octets at 0×FF.

[0051] As illustrated in FIGS. 4 and 5, the transport layer filters the messages M_(I) whose length is less than or equal to its MDS in order to transmit them in their entirety, and rejects or segments the others.

[0052] The calculation entity 50 receives messages M_(I) which pass through the transport layer of the sending mobile equipment ME and transmits those which have kept their original header H_(N) comprising the request to determine the MDS.

[0053] In the case of the rejection of the excessively long messages (FIG. 4), all the messages M_(I) transmitted have kept their original header H_(N) whilst, in the case of segmentation of the excessively long messages (FIG. 5), only a packet D_(I) of each segmented message has kept the header H_(N) of the original message and this packet D_(I) has the required MDS length. In particular, if a received message comprises a field C with an octet at 0×FF, it must be rejected since it constitutes the “surplus” of a segmented original message M_(N).

[0054] For each received message M_(I), the calculation unit 50 will then calculate a corresponding MDS as being the length L_(I) of the said received message M_(I). The calculation entity 50 will then send these calculated lengths L_(I) corresponding to the received messages M_(I) to the SIM card, which will compare these lengths L_(I) and keep the greatest value. The SIM card of the mobile station can then adapt the length of its subsequent messages to the length of the MDS for reliable communication.

[0055] In the case of a communication between a mobile station and a distant server, the said server can detect an abnormality in the MDS if it receives a message whose length is not that indicated in the header of the said message. It can then alert the SIM card of the mobile station so that it initiates a “new” determination of the MDS. 

1. A method for transmitting data according to a communication protocol from a mobile station (10) composed of a smart card (SIM) associated with host mobile equipment (ME), the said protocol being organised in several layers, including at least one data transport layer of the datagram type able to transmit in their entirety data packets (D) of a maximum size (Maximum Datagram Size, MDS), characterised in that the said transmission protocol comprises a step consisting, for the card (SIM), in determining the value of the said maximum size of the data packets (MDS) able to be transmitted in their entirety by the transport layer of its host mobile equipment (ME).
 2. A transmission method according to claim 1, characterised in that the value of the maximum size of the data packets (MDS) is indicated to the card (SIM) directly by its host mobile equipment (ME).
 3. A transmission method according to claim 1, characterised in that the value of the maximum size of the data packets (MDS) is determined by the card (SIM) from the transmission of at least one (N≧1) message (M_(N)) exchanged between the card (SIM) of the mobile station (10) and a calculation entity (50), the said messages (M_(N)) being of distinct lengths when their number is greater than or equal to two (N≧2).
 4. A transmission method according to claim 3, characterised in that the value of the maximum size of the data packets (MDS) is determined by means of the following steps: sending of N messages (M_(N)) by the SIM card (SIM) each comprising a specific header (H_(N)) indicating at least one request for determining the maximum size of the data packets (MDS); filtration, by the transport layer of the mobile equipment (ME) , of the messages (M_(I)) of length less than or equal to the maximum size of the data packets (MDS); reception of the said filtered messages (M_(I)) which have kept the original specific header (H) and calculation of their respective length (L_(I)) by the calculation entity (50); sending of the said lengths (L_(I)) calculated to the card (SIM) of the mobile station (10); determination of the value of the said maximum size of the data packets (MDS) by the card (SIM) by comparison of the said calculated lengths (L_(I)).
 5. A transmission method according to claims 3 to 4, characterised in that the calculation entity (50) is included in the smart card (SIM).
 6. A transmission method according to claims 3 to 4, characterised in that the calculation entity (50) is included in a distant server (100) able to communicate with the mobile station (10).
 7. A transmission method according to claim 6, characterised in that the server (100) is an OTA (Over The Air) communication gateway.
 8. A transmission method according to claim 4, characterised in that the filtering of the transport layer of the host mobile equipment (ME) consists in rejecting the messages with a length exceeding the maximum size of the data packets (MDS).
 9. A transmission method according to claim 4, characterised in that the filtering of the transport layer of the host mobile equipment (ME) consists in segmenting each message with a length exceeding the maximum size of the data packets (MDS) into a plurality of data packets (D_(I)), only one of which keeps the specific header (H_(N)) of the original message (M_(N)).
 10. A method according to any one of the preceding claims, characterised in that the protocol of the transport layer is the UDP protocol (User Datagram Protocol).
 11. A method according to any one of claims 1 to 10, characterised in that the mobile station (10) is a cellular telephone.
 12. A method according to any one of claims 1 to 10, characterised in that the mobile station (10) is a personal digital assistant (PDA).
 13. A smart card (SIM) able to cooperate with host mobile equipment (ME) for communication according to a protocol organised in several layers, including at least one data transport layer of the datagram type able to transmit in their entirety data packets (D) of a maximum size (Maximum Datagram Size, MDS), characterised in that the, said card (SIM) comprises means able to extract the value of the said maximum size of the data packets (MDS) able to be transmitted in their entirety by the transport layer of its host mobile equipment (ME). 